<?php


namespace app\api\model\page\user;


use app\api\model\dao\ManbiRule;
use app\library\Error;
use app\library\PageBase;

class GetRechargeRule extends PageBase
{
    private $objManbiRule;

    public function __construct()
    {
        parent::__construct();
        $this->objManbiRule = new ManbiRule();
    }

    public function excute($param)
    {
        $rule = $this->objManbiRule->getAllRules();
        if (false === $rule) {
            return $this->getRes(Error::ERR_SYS);
        }
        $this->data = $rule;
        return $this->getRes();
    }

}